home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 30
/
Aminet 30 (1999)(Schatztruhe)[!][Apr 1999].iso
/
Aminet
/
util
/
wb
/
AddIcon.lha
/
addicon
/
AddIcon_English.Doc
< prev
next >
Wrap
Text File
|
1998-12-11
|
6KB
|
194 lines
Introduction
------------
AddIcon is a litle program that makes it easy to add standard icons to
files.
AddIcon was written in Oberon-A ©1995 by Frank Copeland.
If you use AddIcon regularly or you have any comments, bugreports or
you want to pay me for AddIcon, even though you don't have to, then
feel free to write to me (see address at the bottom of this document).
Copyright
---------
AddIcon 1.0 is Copyright 1997 Morten Bjergstrøm.
This piece of software is freely distributeable but still copyrighted.
Therefore you are not allowed to change the program in anyway and you
are not allowed to remove or add anything to the archive.
You are allowed to spread this program as much as you like but you may
not make any profit of it.
I cannot in anyway be held responsible for any damage AddIcon may do to
your hardware or software or anything else. You use AddIcon entirely on
your OWN risk.
It is allowed to include this program on public domain/shareware disks
if the price of one disk doesn't exceed 15 Dkr (4DM, $2).
It is allowed to include this program on CD-ROMS if the price of the
CD-ROM doesn't exceed the price of an Aminet CD (129Dkr, 20-25DM)
Magazines have to get my written permission to include AddIcon on their
coverdisks/cdroms. If a magazine gets my written permission to use AddIcon
on one of their coverdisks/cdroms they have to send me a copy of that
magazine including the coverdisk/cdrom free of charge.
Requirements
------------
AddIcon requires OS3.0 or higher and some installed datatypes to work.
The standard icons have to be in ENV:SYS/
Their names should be def_<name of icon>.info
Example:
def_picture.info
def_guide.info
Etc.
In addition the program needs AddIcon.Data in the S: directory.
(Look at the Configuration chapter)
Note: If you use datatypes.library V45.3 then you will loose 60-80 bytes
of memory for each file you check because of a bug in this version
of datatypes.library. (The bug lies in the ObtainDataType call)
If you have a possibility to EMail the author of datatypes.library
V45.3 and you use the library yourself then please email him and ask
him if he wants to correct this bug. (If I could I would EMail him
myself but at the time of writing I can't make the EMail function
work at the local library.)
Installation
------------
Just copy the AddIcon drawer where ever you want.
(Danish users can delete the English version of AddIcon and
English users can delete the Danish version.)
Usage
-----
AddIcon can be started from either the Shell or the Workbench.
When started from the Shell you have to make sure that you have a stack
size at at least 6000 bytes else you will get a Guru-Meditation.
The program supports the following parameters:
FILES The filenames of all the files you want to give an icon.
If the files are in a different directory you have to
enter the full path.
DONTASKADDICON With this switch you choose if you want a requester or not
before an icon is added to your file.
When started from the Workbench you have to make sure that you have a stack
size at at least 5000 bytes else you will probably get a Guru-Meditation.
If the program starts up with no errors you will get an AppIcon on your
Workbench screen.
Just drop some files on this icon and the files will get standard icons.
AddIcon supports one tooltype:
DONTASKADDICON
IF you want AddIcon to ask you before it adds an icon then write
DONTASKADDICON=NO in the tooltype window or just delete the tooltype.
IF you don't want AddIcon to ask you before it adds in icon then
write DONTASKADDICON=YES in the tooltype window. (You have to write
YES in uppercase letters else AddIcon will ask you before it adds an icon
to a file)
To quit AddIcon just doubleclick on the AppIcon and you will be asked if
you really want to quit.
Configuration
-------------
To find out which icon to add to a given filetype AddIcon uses a config
file in S:
This file should have the name AddIcon.Data.
This file can be generated by the program. Just follow the onscreen
information AddIcon gives you if it encounters a filetype without an
associated icon.
You also have the possibility to edit this file by hand with a simple text
editor like Ed. (This is not a recommended operation if you are not quite
sure about what you are doing and in fact there is no reason to do this.
It can lead to errors or even Guru-Meditations :-( )
The format of the configfile is:
Everything after a ';' is treated as a comment just like in AmigaDos
scripts.
Example:
; This is a comment
The definition of what icon to add to a filetype is quite easy.
First you have to find out what the datatype descriptor name is for the
file. You can use AddIcon to figure that out. You just take your file
and drops it on the AddIcon AppIcon (remember to turn off the
DONTASKADDICON option) and you will be told what type your file is.
The requester you get could look something like this:
Add icon to Test.guide
of the type AmigaGuide?
----------
The underlined word is the datatype descriptor you were looking for.
In the AddIcon.Data file you write this descriptor name (case sensitive)
on an empty line then you write a '=' sign and then you write the name
of the icon (no path, no def_ and no .info). After that please press enter
if you don't the program's own configuration routine can get confused.
Example:
AmigaGuide=AmigaGuide
| |
Descriptor The name of the icon in ENV:SYS/ (In this case the full name
will be:
ENV:SYS/def_AmigaGuide.info)
History
-------
11/9/1997: 1.0 First version.
To do
-----
- Stack check code
- Locale support if anybody needs it. Else only a Danish and an English
version will be available.
- Error messages if anybody needs them.
- Other improvements. Tell me what you need.
Address
-------
Mail address:
Morten Bjergstrøm
Krovænget 11
4671 Strøby
Denmark
EMail address:
mbjergstroem@hotmail.com